package com.eduagent.xwqeduagent.api.RecordingFileTranscription.constant;

/**
 * 讯飞录音文件转写API常量
 */
public class FileTranscriptionConstant {
    // API URL
    public static final String UPLOAD_URL = "https://raasr.xfyun.cn/v2/api/upload";
    public static final String GET_RESULT_URL = "https://raasr.xfyun.cn/v2/api/getResult";
    
    // API鉴权相关信息 - 使用示例中的APP_ID
    public static String APP_ID = "900d4c8c";
    public static String SECRET_KEY = "b89a5a25d9dfc8ccca86361b5305a837"; // 注意：SECRET_KEY可能也需要更新
    
    // 语音格式
    public static final String FORMAT_MP3 = "mp3";
    public static final String FORMAT_WAV = "wav";
    public static final String FORMAT_PCM = "pcm";
    public static final String FORMAT_AAC = "aac";
    public static final String FORMAT_OPUS = "opus";
    public static final String FORMAT_FLAC = "flac";
    public static final String FORMAT_OGG = "ogg";
    public static final String FORMAT_M4A = "m4a";
    public static final String FORMAT_AMR = "amr";
    
    // 语言常量
    public static final String LANGUAGE_CHINESE = "cn";
    public static final String LANGUAGE_ENGLISH = "en";
    public static final String LANGUAGE_JAPANESE = "ja";
    public static final String LANGUAGE_KOREAN = "ko";
    public static final String LANGUAGE_RUSSIAN = "ru";
    public static final String LANGUAGE_FRENCH = "fr";
    public static final String LANGUAGE_SPANISH = "es";
    public static final String LANGUAGE_VIETNAMESE = "vi";
    public static final String LANGUAGE_ARABIC = "ar";
    public static final String LANGUAGE_CANTONESE = "cn_cantonese";
    
    // 应用领域常量
    public static final String DOMAIN_COURT = "court";      // 法律
    public static final String DOMAIN_EDU = "edu";          // 教育
    public static final String DOMAIN_FINANCE = "finance";  // 金融
    public static final String DOMAIN_MEDICAL = "medical";  // 医疗
    public static final String DOMAIN_TECH = "tech";        // 科技
    
    // 订单状态
    public static final int ORDER_STATUS_CREATED = 0;       // 订单已创建
    public static final int ORDER_STATUS_PROCESSING = 3;    // 订单处理中
    public static final int ORDER_STATUS_COMPLETED = 4;     // 订单已完成
    public static final int ORDER_STATUS_FAILED = -1;       // 订单失败
    
    // 失败类型
    public static final int FAIL_TYPE_NORMAL = 0;           // 音频正常执行
    public static final int FAIL_TYPE_UPLOAD = 1;           // 音频上传失败
    public static final int FAIL_TYPE_TRANSCODE = 2;        // 音频转码失败
    public static final int FAIL_TYPE_RECOGNITION = 3;      // 音频识别失败
} 